package com.study.selection.service;

import com.study.selection.model.Major;

import java.util.List;

public interface MajorService {
    List<Major> findAll();

    List<Major> findByKey(String key);

    boolean addMajor(Major major);

    //根据学院编号获取对象

    List<Major> getByCollegeId(int collegeId);

    Major getByMajorId(int majorId);

    boolean updateMajor(Major major);
    // 逻辑删除
    boolean deleteMajor(int majorId);

}
